<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8"/>
    <link rel="stylesheet" href="Xadmin/css/font.css">
    <link rel="stylesheet" href="Xadmin/css/xadmin.css">
    <script src="./layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="Xadmin/js/xadmin.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <blockquote class="layui-elem-quote">
                        快速开发平台
                    </blockquote>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">数据统计</div>
                <div class="layui-card-body ">
                    <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>角色数</h3>
                                <p>
                                    <cite><span id="roleCnt">0</span></cite>
                                    <span style="font-size: 8px;color: red;float: right">人</span>
                                </p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>路由数</h3>
                                <p>
                                    <cite><span id="routeCnt">0</span></cite>
                                    <span style="font-size: 8px;color: red;float: right">个</span>
                                </p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>用户数</h3>
                                <p>
                                    <cite><span id="userCnt">0</span></cite>
                                    <span style="font-size: 8px;color: red;float: right">次</span>
                                </p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>7日收入</h3>
                                <p>
                                    <cite><span id="SMoney">0</span></cite>
                                    <span style="font-size: 8px;color: red;float: right">元</span>
                                </p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>消息发送数</h3>
                                <p>
                                    <cite><span id="msgCnt">0</span></cite>
                                    <span style="font-size: 8px;color: red;float: right">次</span>
                                </p>
                            </a>
                        </li>
                        <li class="layui-col-md2 layui-col-xs6 ">
                            <a href="javascript:;" class="x-admin-backlog-body">
                                <h3>资源数</h3>
                                <p>
                                    <cite><span id="reCnt">0</span></cite>
                                    <span style="font-size: 8px;color: red;float: right">个</span>
                                </p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">系统信息</div>
                <div class="layui-card-body ">
                    <table class="layui-table">
                        <tbody>
                        <tr>
                            <th>系统版本</th>
                            <td>1.1</td>
                        </tr>
                        <tr>
                            <th>服务器地址</th>
                            <td id="localName">a.dafeiyang.com</td>
                        </tr>
                        <tr>
                            <th>操作系统</th>
                            <td id="port">0000</td>
                        </tr>
                        <tr>
                            <th>请求接口</th>
                            <td id="servletPath">Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9</td>
                        </tr>
                        <tr>
                            <th>上下文</th>
                            <td id="servletContext">5.6.27</td>
                        </tr>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">开发团队</div>
                <div class="layui-card-body ">
                    <table class="layui-table">
                        <tbody>
                        <tr>
                            <th>版权所有</th>
                            <td>@a
                        </tr>
                        <tr>
                            <th>开发者</th>
                            <td>@a</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <style id="welcome_style"></style>
        <div class="layui-col-md12">
            <blockquote class="layui-elem-quote layui-quote-nm">版权所有，翻版必究</blockquote>
        </div>
    </div>
</div>
</div>
</body>
<script src="layui/tool.js"></script>
<script>
    $(function () {
        var baseurl = ABaseURL
        layui.jquery.ajax({
            url: baseurl + '/Tool/getServletInfo'
            , headers: {token: getCookie("DFYToken")},
            method: 'get',
            data: {},
            success: function (res) {
                var object = JSON.parse(res);
                console.log(object.data)
                $("#roleCnt").html(object.data["roleCnt"])
                $("#routeCnt").html(object.data["routeCnt"])
                $("#userCnt").html(object.data["userCnt"])
                $("#SMoney").html(object.data["SMoney"])
                $("#HFCount").html(object.data["HFCount"])
                $("#Recount").html(object.data["Recount"])
                $("#Port").html(object.data["Port"])
                $("#LocalName").html(object.data["LocalName"])
                $("#ServletPath").html(object.data["ServletPath"])
                $("#ServletContext").html(object.data["ServletContext"])
            }
        })
    })
</script>
</html>>